//
//  UserInfoApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "UserInfoApi.h"

@implementation UserInfoApi{
    NSInteger _userId;
}
- (id)initWithUserId:(NSInteger )userId{
    self = [super init];
    if (self) {
        _userId = userId;
    }
    return self;
}

- (NSString *)requestUrl{
    return @"/user/get_user_info";
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (id)requestArgument{
    return @{
             @"userid":[NSNumber numberWithInteger:_userId]
             };
}


@end
